package com.xinzhitong.www.mapper;


import org.apache.ibatis.annotations.Insert;
import org.springframework.stereotype.Repository;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

/**
 * 分享表的相关约束
 *
 * @author 吴展鹏
 */
@Repository
public interface ShareMapper {


    @Insert("insert into ${table} (username, ${idField}) values(#{username}, #{id})")
    Integer insertShare(
            @Param("table") String table,
            @Param("idField") String idField,
            @Param("username") String username,
            @Param("id") Integer id
    );

}
